#define _CRT_SECURE_NO_WARNINGS 1
#include"SqStack.h"

int main()
{
	Stack ps;
	StackInit(&ps);
	StackPush(&ps, 1);
	StackPush(&ps, 2);
	StackPush(&ps, 3);
	StackPush(&ps, 4);
	StackPush(&ps, 5);
	StackPush(&ps, 6);
	StackPush(&ps, 7);
	printf("Stack have %d number\n", StackSize(&ps));
	StackDestroy(&ps);
	while (!StackEmpty(&ps))
	{
		int top = StackTop(&ps);
		printf("%d->", top);
		StackPop(&ps);
	}
	printf("StackNULL\n");
	return 0;
}